package com.itqf.proxy.static_proxy1;

import com.itqf.proxy.static_proxy1.impl.GoodsServiceImpl;
import com.itqf.proxy.static_proxy1.impl.ProxyGoodsServiceImpl;

/**
 * @Description:
 * @Company: 千锋互联
 * @Author: 李丽婷
 * @Date: 2020/11/10
 * @Time: 上午11:01
 */
public class Test {

    public  static  void  main(String[]args){
        //1,创建被代理对象
        GoodsService goodsService = new GoodsServiceImpl();
        //2.创建代理对象
        ProxyGoodsServiceImpl proxyGoodsService = new ProxyGoodsServiceImpl(goodsService);

        //3.调用方法
        proxyGoodsService.addGoods();
        proxyGoodsService.updateOrder();

    }


}
